package com.zx._10_设计模式._0_综合案例.奖励的发放策略;

/**
 * @author zhangxue
 */
public class Food implements Strategy {

    //单例模式,自动注册
    private  static final Food instance = new Food();

    private Food(){
        // 注册策略
        StrategyContext.registerStrategy(RewardType.Strategy2.name(), this);
    }

    public static Strategy getInstance(){
        return Food.instance;
    }

    @Override
    public void issue(Object... params) {
        System.out.println("Food");
    }

}